// Method 2
function method2()
{

    var a = x
      + "test1"
                + "test2";
}

